<?php

namespace App\Http\Controllers\Sys_admin;

use App\Http\Controllers\Controller;

/**
 * base
 */
// 跨域问题解决方案
header("Access-Control-Allow-Origin:*");
class BaseController extends Controller
{
     
    public function __construct()
    {
        // 初始化系统常量
        $this->initSystemConst();
    }


    /** 
     * 初始化系统常量
     * @return void
     * @author VJF
     * 
     */
    private function initSystemConst()
    {
        //项目根目录
        defined('ROOT_PATH') or define('ROOT_PATH', base_path());
        //站点充电桩充电接口监控
        define('SYS_PATH_MAIN_JIAN_KONG','/cd_admin_sys/main/jian-kong');
        //看板目录
        define('SYS_PATH_MAIN_SHOW_DATA','/cd_admin_sys/main/show-data');

        //添加价格模板目录
        define('ADD_BASE_PRICE_TEMPLATE','/cd_admin_sys/operate/add-base-price-template');
        //价格模板
        define('BASE_PRICE_TEMPLATE','/cd_admin_sys/operate/basePriceTemplate');
        //站点总览
        define('ZONG_LAN','/cd_admin_sys/operate/zonglan');

        //订单列表
        define('ORDERS_LIST','/cd_admin_sys/order/orders');
        //订单详细
        define('ORDERS_INFO','/cd_admin_sys/order/ordersInfo');

        //添加站点
        define('ADD_STATION','/cd_admin_sys/order/addStation');
        //编辑站点
        define('EDIT_STATION','/cd_admin_sys/order/editStation');
        //站点列表
        define('BASE_STATION','/cd_admin_sys/order/baseStation');

        //充电桩管理
        define('BASE_EQUIPMENT','/cd_admin_sys/order/baseEquipment');
        //添加充电桩
        define('ADD_BASE_EQUIPMENT','/cd_admin_sys/order/addBaseEquipment');
        //添加充电端口
        define('ADD_BASE_EQUIPMENT_PROT','/cd_admin_sys/order/addBaseEquipmentProt');
        //选择价格模板
        define('SELECT_BASE_PRICE_TEMPLATE','/cd_admin_sys/order/selectBasePriceTemplate');

        //会员管理.
        define('USER_LIST','/cd_admin_sys/order/users');
        //会员车辆信息
        define('USER_CAR','/cd_admin_sys/order/user_car');
        //会员协议管理
        define('USER_AGREEMENT','/cd_admin_sys/order/user_agreement');
    }

}



